#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/4/26 11:59
# @Author : 吴敬超
# explain:

import netCDF4

OPENDAP_url = 'http://192.168.22.44:8080/thredds/dodsC/treefile/oceansnap/ocean_snap_salt_2018_02_01.nc'
ncds = netCDF4.Dataset(OPENDAP_url)
# assert 'salt' in ncds.variables

# print "salt in nc file"
ncds['time'][:]